#ifndef HISTORY_H
#define HISTORY_H

#include <QMainWindow>
#include "history.h"
#include "qcustomplot.h"
#include <QVector>
#include <QTimer>
#include <QTime>
#include "globalval.h"
namespace Ui {
class History;
}

class History : public QMainWindow
{
    Q_OBJECT

public:
    explicit History(QWidget *parent = 0);
    ~History();
    int type;
    int result;
    void setupRealtimeDataDemo(QCustomPlot *customPlot);
    void realtimeData();
private:
    Ui::History *ui;
    QTimer dataTimer;
private slots:
    void dataUpSlot(QByteArray);
};

#endif // HISTORY_H
